/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package daos.classes;


import java.sql.*;

/**
 *
 * @author curso
 */
public abstract class DAOGenerico implements daos.interfaces.DAO {
    protected Connection conexion;
    public void conectar()throws SQLException,ClassNotFoundException{
        Class.forName("com.mysql.jdbc.Driver");
        conexion=DriverManager.getConnection("jdbc:mysql://localhost:3306/mibase", "root", "hola123");
    }
    public void desconectar()throws SQLException{
        conexion.close();
    }
    
}
